<table>
    <h1><g:message code="show.descriptive.label" args="[bidDescription, bidEntity]" /></h1>
    <tbody>
        <tr class="prop">
            <th valign="top" class="name"><g:message code="bid.id.label" default="Id" /></th>
            <th valign="top" class="name"><g:message code="bid.amount.label" default="Current Bid Price" /></th>
            <th valign="top" class="name"><g:message code="bid.date.label" default="Bid Date Time" /></th>
            <th valign="top" class="name"><g:message code="bid.buyer.emailAddress.label" default="Buyer" /></th>
            <th valign="top" class="name"><g:message code="bid.listing.listName.label" default="Listing" /></th>
            <th valign="top" class="name"><g:message code="listing.numberOfBids.label" default="Total Bid Count" /></th>
        </tr>
        <tr>
            <td valign="top" class="value">${fieldValue(bean: listingInstance?.getMaxBid(), field: "id")}</td>
            <g:if test="${listingInstance?.getMaxBid()}">
                <td valign="top" class="value"><g:formatNumber number="${listingInstance?.getMaxBid()?.amount}" type="currency" currencyCode="USD" /></td>
            </g:if>
            <g:else>
                 <td valign="top" class="value"><g:formatNumber number="${listingInstance.startBidPrice}" type="currency" currencyCode="USD" /></td>
            </g:else>
            <td valign="top" class="value">${fieldValue(bean: listingInstance?.getMaxBid(), field: "date")}</td>
            <g:if test="${listingInstance?.getMaxBid()}">
                <td><g:link controller="customer" action="show" id="${listingInstance?.getMaxBid()?.buyer.id}">${fieldValue(bean: listingInstance?.getMaxBid(), field: "buyer.emailAddress")}</g:link></td>
                <td valign="top" class="value">${fieldValue(bean: listingInstance?.getMaxBid(), field: "listing.listName")}</td>
            </g:if>
            <g:else>
                 <td valign="top" class="value"></td>
                 <td valign="top" class="value"></td>
            </g:else>
            <td valign="top" class="value">${listingInstance?.getNumberOfBids()}</td>
        </tr>
    </tbody>
</table>
